.class Lcom/esfile/screen/recorder/picture/PictureListFragment$k;
.super Landroidx/recyclerview/widget/RecyclerView$ItemDecoration;
.source "PictureListFragment.java"


# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
    value = Lcom/esfile/screen/recorder/picture/PictureListFragment;
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = "k"
.end annotation


# instance fields
.field private a:I

.field private b:I

.field private c:I

.field private d:I

.field final synthetic e:Lcom/esfile/screen/recorder/picture/PictureListFragment;


# direct methods
.method constructor <init>(Lcom/esfile/screen/recorder/picture/PictureListFragment;II)V
    .locals 0

    .line 1
    iput-object p1, p0, Lcom/esfile/screen/recorder/picture/PictureListFragment$k;->e:Lcom/esfile/screen/recorder/picture/PictureListFragment;

    invoke-direct {p0}, Landroidx/recyclerview/widget/RecyclerView$ItemDecoration;-><init>()V

    const/4 p1, 0x4

    .line 2
    iput p1, p0, Lcom/esfile/screen/recorder/picture/PictureListFragment$k;->d:I

    .line 3
    iput p2, p0, Lcom/esfile/screen/recorder/picture/PictureListFragment$k;->a:I

    .line 4
    iput p3, p0, Lcom/esfile/screen/recorder/picture/PictureListFragment$k;->b:I

    .line 5
    div-int/2addr p2, p3

    iput p2, p0, Lcom/esfile/screen/recorder/picture/PictureListFragment$k;->c:I

    return-void
.end method


# virtual methods
.method public getItemOffsets(Landroid/graphics/Rect;Landroid/view/View;Landroidx/recyclerview/widget/RecyclerView;Landroidx/recyclerview/widget/RecyclerView$State;)V
    .locals 4

    .line 1
    invoke-virtual {p2}, Landroid/view/View;->getLayoutParams()Landroid/view/ViewGroup$LayoutParams;

    move-result-object p2

    check-cast p2, Landroidx/recyclerview/widget/RecyclerView$LayoutParams;

    .line 2
    invoke-virtual {p2}, Landroidx/recyclerview/widget/RecyclerView$LayoutParams;->getViewLayoutPosition()I

    move-result p3

    .line 3
    instance-of p4, p2, Landroidx/recyclerview/widget/GridLayoutManager$LayoutParams;

    const/4 v0, 0x1

    if-eqz p4, :cond_0

    .line 4
    check-cast p2, Landroidx/recyclerview/widget/GridLayoutManager$LayoutParams;

    .line 5
    invoke-virtual {p2}, Landroidx/recyclerview/widget/GridLayoutManager$LayoutParams;->getSpanSize()I

    move-result p4

    .line 6
    invoke-virtual {p2}, Landroidx/recyclerview/widget/GridLayoutManager$LayoutParams;->getSpanIndex()I

    move-result p2

    goto :goto_0

    :cond_0
    const/4 p2, 0x0

    const/4 p4, 0x1

    :goto_0
    if-lt p4, v0, :cond_3

    if-ltz p2, :cond_3

    .line 7
    iget v1, p0, Lcom/esfile/screen/recorder/picture/PictureListFragment$k;->b:I

    if-gt p4, v1, :cond_3

    if-nez p3, :cond_1

    goto :goto_1

    .line 8
    :cond_1
    iget v1, p0, Lcom/esfile/screen/recorder/picture/PictureListFragment$k;->a:I

    iget v2, p0, Lcom/esfile/screen/recorder/picture/PictureListFragment$k;->c:I

    mul-int v3, v2, p2

    sub-int v3, v1, v3

    iput v3, p1, Landroid/graphics/Rect;->left:I

    add-int/2addr p2, p4

    sub-int/2addr p2, v0

    mul-int p2, p2, v2

    add-int/2addr v2, p2

    .line 9
    iput v2, p1, Landroid/graphics/Rect;->right:I

    .line 10
    iget p2, p0, Lcom/esfile/screen/recorder/picture/PictureListFragment$k;->d:I

    if-ge p3, p2, :cond_2

    .line 11
    iput v1, p1, Landroid/graphics/Rect;->top:I

    .line 12
    :cond_2
    iget p2, p0, Lcom/esfile/screen/recorder/picture/PictureListFragment$k;->a:I

    iput p2, p1, Landroid/graphics/Rect;->bottom:I

    :cond_3
    :goto_1
    return-void
.end method
